---
title: "Wine"
date: 2020-7-15
categories:
- linux
tags:
---

<div id="content">
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org15636d9">安装微信</a>
<ul>
<li><a href="#orgfb993dc">FAQ</a>
<ul>
<li><a href="#org8ab006e">输入框无法输入</a></li>
<li><a href="#org65fd48f">输入框中文乱码</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="outline-2" id="outline-container-org15636d9">
<h2 id="org15636d9">安装微信</h2>
<div class="outline-text-2" id="text-org15636d9">
<blockquote>
<p>
<a href="https://zhuanlan.zhihu.com/p/76331687">https://zhuanlan.zhihu.com/p/76331687</a>
</p>
</blockquote>
<pre class="example">
# 在 ~/wine/WeChat 下初始化一个环境，相当于容器化
WINARCH=win32 WINEPREFIX=/home/amo/wine/WeChat winecfg

# 安装 riched20.dll，是为了解决安装后的微信输入框无法输入的问题
WINARCH=win32 WINEPREFIX=/home/amo/wine/WeChat winetricks
# 选择默认的Wine容器 -  安装Windows DLL组件 - 勾选riched20.dll（以及riched32.dll）

# 安装微信
WINARCH=win32 WINEPREFIX=/home/amo/wine/WeChat wine WeChat_C1018.exe
</pre>
</div>
<div class="outline-3" id="outline-container-orgfb993dc">
<h3 id="orgfb993dc">FAQ</h3>
<div class="outline-text-3" id="text-orgfb993dc">
</div>
<div class="outline-4" id="outline-container-org8ab006e">
<h4 id="org8ab006e">输入框无法输入</h4>
<div class="outline-text-4" id="text-org8ab006e">
<p>
需要riched20.dll，通过winetricks安装
</p>
</div>
</div>
<div class="outline-4" id="outline-container-org65fd48f">
<h4 id="org65fd48f">输入框中文乱码</h4>
<div class="outline-text-4" id="text-org65fd48f">
<p>
wine ~/wine/WeChat/drive_c/windows/Fonts下面没有字体，从Windows系统上拷贝
</p>
</div>
</div>
</div>
</div>
</div>
<div class="status" id="postamble">
<p class="date">Date: 2020-7-15</p>
<p class="author">Author: gdme1320</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
